package db

import model "awesomeProject/src/main/Models"

type IDao interface {
	GetAllOrder()(b []*model.DemoOrder,err error)//查询所有

	AddNewOrder(order *model.DemoOrder) (err error)//新增
	GetOneOrder(orderNo string)(order *model.DemoOrder, err error)//根据ID查询

	//UpdatesOrder(order *model.DemoOrder,updateOrder *model.DemoOrder) (err error)//更新
	UpdateOrder(order *model.DemoOrder) (err error)//更新


	DeleteOrder(order *model.DemoOrder) (err error)	//根据ordeNo删除对应的数据
}